package com.zhongkai.Bean;

import java.io.Serializable;
import java.util.Objects;


public class SetRoleBean implements Serializable {
    private Integer id;
    private String name;
    private String remove;
/*    @JsonBackReference
    @JsonIgnore*/
   // private Collection<MenusRole> menusRolesById;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemove() {
        return remove;
    }

    public void setRemove(String remove) {
        this.remove = remove;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SetRoleBean setRole = (SetRoleBean) o;
        return Objects.equals(id, setRole.id) &&
                Objects.equals(name, setRole.name);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, name);
    }


/*    public Collection<MenusRole> getMenusRolesById() {
        return menusRolesById;
    }

    public void setMenusRolesById(Collection<MenusRole> menusRolesById) {
        this.menusRolesById = menusRolesById;
    }*/
}
